<?php

namespace App\Lib\Rooms\Listeners;

use App\Lib\Rooms\Events\RoomCreatedEvent;
use Hyperf\Event\Annotation\Listener;
use Hyperf\Event\Contract\ListenerInterface;

/**
 * 房间创建
 * Class RoomCreatedListener
 * @Listener()
 * @package App\Lib\Rooms\Listeners
 */
class RoomCreatedListener implements ListenerInterface
{


    public function listen(): array
    {
        return [
            RoomCreatedEvent::class,
        ];
    }

    public function process(object $event)
    {

        dump('创建房间');
    }
}